<template>
  <div id="app">
    <h1>简易选课系统</h1>
    <div id="nav">
      <router-link to="/subjects">可选课程列表</router-link> |
      <router-link to="/mine">我的课程列表</router-link>
    </div>
    <keep-alive>
      <router-view/>
    </keep-alive>
    
  </div>
</template>

<style lang="less">
#app {
  margin: 0 auto;
  width: 1000px;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
